{% extends 'table_base.html' %}

{% block crumbs %}
  <div id="headerline-crumbs" role="tablist" class="tw:tabs tw:tabs-sm">
    <a role="tab" class="tw:tab tw:h-fit {% if headerline_tab_sec == "all-users" %}tw:tab-active tw:font-bold{% endif %}" href="{% url 'user:management/list' %}">{% trans '所有用户' %}</a>
    <a role="tab" class="tw:tab tw:h-fit {% if headerline_tab_sec == "user-permission" %}tw:tab-active tw:font-bold{% endif %}" href="{% url 'user:management/permission' %}">{% trans '用户权限' %}</a>
    <a role="tab" class="tw:tab tw:h-fit {% if headerline_tab_sec == "researchers-resumes" %}tw:tab-active tw:font-bold{% endif %}" href="{% url 'user:management/researchers-resumes' %}">{% trans '研究者简历' %}</a>
  </div>
{% endblock %}

{% block crumbs-right %}
  {% if headerline_tab_sec == "researchers-resumes" %}
    <a class="by6-crumbs-action-btn" id="batch-upload-resumes-btn" hx-get="{% url 'user:management/upload-researchers-resumes' %}" hx-trigger="click" hx-target="#body">{% trans '批量上传研究者简历' %}</a>
    <button class="by6-crumbs-action-btn" id="delete_selected_files_btn">{% trans '删除选择文件' %}</button>
  {% else %}
    <a class="by6-crumbs-action-btn" id="save-changes">{% trans '保存更改' %}</a>
  {% endif %}

  {% block crumbs-right-extend %}
  {% endblock %}
{% endblock %}


{% block body-sidebar-menu %}
  {% include 'components/sidebar/management.html' %}
{% endblock %}

